const Controllers = require('../controllers/index');
const validate = require('../middlewares/validate');

const routes = [
  {
    // 注册
    path: '/register',
    method: 'post',
    validate: validate({
      'username': 'required',
      'password': 'required',
      'phone': 'required|number',
      'email': 'required|string',
    }),
    controller: Controllers.register
  },
];

module.exports = routes;